package com.fengxiang;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author wfx
 */
@SpringBootApplication
public class FengxiangApplication extends SpringBootServletInitializer {
    /**
     * 项目发布war 本地调试jar 方法
     * @param args
     */
    public static void main(String[] args) {
        new SpringApplicationBuilder(FengxiangApplication.class).web(WebApplicationType.SERVLET).run(args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(FengxiangApplication.class);
    }
}
